package com.imooc.article.controller;

import com.imooc.article.stream.StreamMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Project_name: imooc-news-dev
 * @Description:
 * @Author: Levi
 * @Date: 2021/4/2 16:30
 */
@RestController
public class HelloController {
    @Autowired
    private StreamMsgService streamMsgService;

    @RequestMapping("/stream")
    public Object testMyStream() {
        streamMsgService.sendMsg();
        return "hello spring-cloud-stream";
    }
}
